package Homework10.Review;

public class Manage extends Employee{
    private double bonus;

    public Manage(String name, double sal, double bonus) {
        super(name, sal);
        this.bonus = bonus;
    }

    //特有方法
    public void manage(){
        System.out.println("经理" + getName() + "正在管理");
    }

    //重写
    public double getAnnual(){
        System.out.print("经理的年工资：");
        return super.getAnnual() + bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
